{template 'admin','header'}
<form action="{$self_url}?action=search" onsubmit="return r_submit(this);">
<table width="100%" cellpadding="0">
<tr>
	<td><strong>数据源:</strong>
		<select name="source">
		{loop $source_list $s}
			<option value="{$s['scid']}" {if $s['scid']==$source} selected {/if}>{$s['scname']}</option>
		{/loop}
		</select>
		<strong>数据源地址:</strong>
		<input type="text" name="url" value="{$url}">
		<strong>数据主键id:</strong>
		<input type="text" name="fid" value="{if $fid >0}{$fid}{/if}">
		<input type="submit" class="button_style" value="搜索"></td>
</tr>
</table>
</form>

<table class="table_list">
 <caption>搜索数据源列表</caption>
 <tr>
	 <th width="300" class="align_c">标题</th>
	 <th width="200" class="align_c">地址</th>
	 <th class="align_c">添加时间</th>
	 <th class="align_c">修改时间</th>
	 <th width="100" class="align_c">操作</th>
 </tr>
 {loop $list $l}
 <tr>
 	<td width="300" class="align_c">{if empty($l['title'])}未设定{else}{$l['title']}{/if}</td>
 	<td width="200" class="align_c">{$l['url']}</td>
 	<td class="align_c">{date('Y-m-d H:i:s',$l['addtime'])}</td>
	<td class="align_c">{substr($l['lasttime'],10)}</td>
	<td width="100" class="align_c">
		{if check_perms('sc008')===true}<a href="{$self_url}?action=edit_data&id={$l['id']}&forward={$forward}">修改</a> | {/if}
		{if check_perms('sc009')===true}<a href="javascript:my_request('{$self_url}?action=del_data&id={$l['id']}&forward={$forward}','确认要删除此数据吗？')">删除</a>{/if}
	</td>
 </tr>
 {/loop}
</table>

<div id="pages">
{$pages}
</div>
{template 'admin','footer'}